restore code to previous commit. There are any references about restore code to previous commit in here. you can look below.